/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.rs.dao;

import java.util.Collection;
import java.util.List;

import com.xy.biz.rs.domain.po.ManufactureRecordPO;
import com.xy.biz.rs.domain.query.ManufactureRecordQuery;

/**
 *
 *
 * @author wwj
 * @date 2021-4-16
 */
public interface ManufactureRecordDao {

	/**
	 * 保存
	 *
	 * @param manufactureRecordPO
	 */
	int saveManufactureRecord(ManufactureRecordPO manufactureRecordPO);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllManufactureRecord(Collection<ManufactureRecordPO> collection);

	/**
	 * 更新
	 *
	 * @param manufactureRecordPO
	 */
	int updateManufactureRecord(ManufactureRecordPO manufactureRecordPO);

	/**
	 * 删除
	 *
	 * @param manufactureRecordId
	 */
	int deleteManufactureRecord(Long manufactureRecordId);

	/**
	 * 查找一个
	 *
	 * @param manufactureRecordId
	 * @return
	 */
	ManufactureRecordPO getManufactureRecord(Long manufactureRecordId);

	/**
	 * 查找多条
	 *
	 * @param collection
	 * @return
	 */
	List<ManufactureRecordPO> listManufactureRecordById(Collection<Long> collection);

	/**
	 * 条件查找多条
	 *
	 * @param query 查找条件
	 * @return
	 */
	List<ManufactureRecordPO> listManufactureRecord(ManufactureRecordQuery query);

	/**
	 * 条件统计个数
	 *
	 * @param query 查找条件
	 * @return
	 */
	int countManufactureRecord(ManufactureRecordQuery query);

}
